|
Repetier-Firmware
1.0.0
|
#include "Repetier.h"#include "uimenu.h"#include <math.h>#include <stdlib.h>#include <inttypes.h>#include <ctype.h>Macros | |
| #define | UI_MAIN 1 |
| #define | UI_ROWS_EXTRA 0 |
ENTRYMODES | |
| #define | LCD_ENTRYMODE 0x04 |
| #define | LCD_ENTRYMODE 0x04 |
| #define | LCD_INCREASE LCD_ENTRYMODE | 0x02 |
| #define | LCD_DECREASE LCD_ENTRYMODE | 0x00 |
| #define | LCD_DISPLAYSHIFTON LCD_ENTRYMODE | 0x01 |
| #define | LCD_DISPLAYSHIFTOFF LCD_ENTRYMODE | 0x00 |
GENERAL COMMANDS | |
| #define | LCD_CLEAR 0x01 |
| #define | LCD_HOME 0x02 |
DISPLAYMODES | |
| #define | LCD_DISPLAYMODE 0x08 |
| #define | LCD_DISPLAYON LCD_DISPLAYMODE | 0x04 |
| #define | LCD_DISPLAYOFF LCD_DISPLAYMODE | 0x00 |
| #define | LCD_CURSORON LCD_DISPLAYMODE | 0x02 |
| #define | LCD_CURSOROFF LCD_DISPLAYMODE | 0x00 |
| #define | LCD_BLINKINGON LCD_DISPLAYMODE | 0x01 |
| #define | LCD_BLINKINGOFF LCD_DISPLAYMODE | 0x00 |
SHIFTMODES | |
| #define | LCD_SHIFTMODE 0x10 |
| #define | LCD_DISPLAYSHIFT LCD_SHIFTMODE | 0x08 |
| #define | LCD_CURSORMOVE LCD_SHIFTMODE | 0x00 |
| #define | LCD_RIGHT LCD_SHIFTMODE | 0x04 |
| #define | LCD_LEFT LCD_SHIFTMODE | 0x00 |
Functions | |
| void | beep (uint8_t duration, uint8_t count) |
Variables | |
| static TemperatureController * | currHeaterForSetup |
| millis_t | ui_autoreturn_time = 0 |
| UIDisplay | uid |
DISPLAY_CONFIGURATION | |
| #define | LCD_CONFIGURATION 0x20 |
| #define | LCD_8BIT LCD_CONFIGURATION | 0x10 |
| #define | LCD_4BIT LCD_CONFIGURATION | 0x00 |
| #define | LCD_2LINE LCD_CONFIGURATION | 0x08 |
| #define | LCD_1LINE LCD_CONFIGURATION | 0x00 |
| #define | LCD_5X10 LCD_CONFIGURATION | 0x04 |
| #define | LCD_5X7 LCD_CONFIGURATION | 0x00 |
| #define | LCD_SETCGRAMADDR 0x40 |
| #define | lcdPutChar(value) lcdWriteByte(value,1) |
| #define | lcdCommand(value) lcdWriteByte(value,0) |
| #define | INCREMENT_MIN_MAX(a, steps, _min, _max) a = constrain((a + increment * steps), _min, _max); |
| const int8_t encoder_table [16] | PROGMEM = {4, 14, 21, 4, 4, 4, 28, 0} |
| uint16_t | nFilesOnCard |
| void | lcdWriteNibble (uint8_t value) |
| void | lcdWriteByte (uint8_t c, uint8_t rs) |
| void | initializeLCD () |
| UI_STRING (ui_selected, UI_TEXT_SEL) | |
| UI_STRING (ui_unselected, UI_TEXT_NOSEL) | |
| void | getSDFilenameAt (uint16_t filePos, char *filename) |
| void | sdrefresh (uint16_t &r, char cache[UI_ROWS][MAX_COLS+1]) |
| #define INCREMENT_MIN_MAX | ( | a, | |
| steps, | |||
| _min, | |||
| _max | |||
| ) | a = constrain((a + increment * steps), _min, _max); |
| #define LCD_1LINE LCD_CONFIGURATION | 0x00 |
1 line display
| #define LCD_2LINE LCD_CONFIGURATION | 0x08 |
2 line display
| #define LCD_4BIT LCD_CONFIGURATION | 0x00 |
4 bits interface
| #define LCD_5X10 LCD_CONFIGURATION | 0x04 |
5 X 10 dots
| #define LCD_5X7 LCD_CONFIGURATION | 0x00 |
5 X 7 dots
| #define LCD_8BIT LCD_CONFIGURATION | 0x10 |
8 bits interface
| #define LCD_BLINKINGOFF LCD_DISPLAYMODE | 0x00 |
Blinking off
| #define LCD_BLINKINGON LCD_DISPLAYMODE | 0x01 |
Blinking on
| #define LCD_CLEAR 0x01 |
Clear screen
| #define LCD_CONFIGURATION 0x20 |
Set function
| #define LCD_CURSORMOVE LCD_SHIFTMODE | 0x00 |
Cursor move
| #define LCD_CURSOROFF LCD_DISPLAYMODE | 0x00 |
Cursor off
| #define LCD_CURSORON LCD_DISPLAYMODE | 0x02 |
Cursor on
| #define LCD_DECREASE LCD_ENTRYMODE | 0x00 |
Set cursor move direction – Decrease
| #define LCD_DISPLAYMODE 0x08 |
Set displaymode
| #define LCD_DISPLAYOFF LCD_DISPLAYMODE | 0x00 |
Display off
| #define LCD_DISPLAYON LCD_DISPLAYMODE | 0x04 |
Display on
| #define LCD_DISPLAYSHIFT LCD_SHIFTMODE | 0x08 |
Display shift
| #define LCD_DISPLAYSHIFTOFF LCD_ENTRYMODE | 0x00 |
Display is not shifted
| #define LCD_DISPLAYSHIFTON LCD_ENTRYMODE | 0x01 |
Display is shifted
| #define LCD_ENTRYMODE 0x04 |
Set entrymode
| #define LCD_ENTRYMODE 0x04 |
Set entrymode
| #define LCD_HOME 0x02 |
Cursor move to first digit
| #define LCD_INCREASE LCD_ENTRYMODE | 0x02 |
Set cursor move direction – Increase
| #define LCD_LEFT LCD_SHIFTMODE | 0x00 |
Left shift
| #define LCD_RIGHT LCD_SHIFTMODE | 0x04 |
Right shift
| #define LCD_SETCGRAMADDR 0x40 |
| #define LCD_SHIFTMODE 0x10 |
Set shiftmode
| #define lcdCommand | ( | value | ) | lcdWriteByte(value,0) |
| #define lcdPutChar | ( | value | ) | lcdWriteByte(value,1) |
| #define UI_MAIN 1 |
| #define UI_ROWS_EXTRA 0 |
| void beep | ( | uint8_t | duration, |
| uint8_t | count | ||
| ) |
| void getSDFilenameAt | ( | uint16_t | filePos, |
| char * | filename | ||
| ) |
| void initializeLCD | ( | ) |
| void lcdWriteByte | ( | uint8_t | c, |
| uint8_t | rs | ||
| ) |
| void lcdWriteNibble | ( | uint8_t | value | ) |
| void sdrefresh | ( | uint16_t & | r, |
| char | cache[UI_ROWS][MAX_COLS+1] | ||
| ) |
write file names at current position to lcd
| UI_STRING | ( | ui_selected | , |
| UI_TEXT_SEL | |||
| ) |
| UI_STRING | ( | ui_unselected | , |
| UI_TEXT_NOSEL | |||
| ) |
|
static |
| uint16_t nFilesOnCard |
| const int8_t encoder_table [16] PROGMEM = {4, 14, 21, 4, 4, 4, 28, 0} |
| millis_t ui_autoreturn_time = 0 |
| UIDisplay uid |